]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
status/network: Sync active access point from constructor
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 4 Aug 2022 22:32:24 +0000 (00:32 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 7 Aug 2022 20:41:09 +0000 (22:41 +0200)
The wireless device item tracks the active access point in order
to update its icon on signal strength changes.

However we currently don't synchronize the initial state, so we
miss strength changes until the first access-point change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2406>

js/ui/status/network.js

index efe022ae194419628f9a69d0cf5246e4cc7cf24d..904abf5849201a5144cd55c0c90217d3e45960ee 100644 (file)
@@ -1273,6 +1273,7 @@ var NMDeviceWireless = class extends Signals.EventEmitter {
             'notify::active-access-point', this._activeApChanged.bind(this),
             'state-changed', this._deviceStateChanged.bind(this), this);
 
+        this._activeApChanged();
         this._sync();
     }